@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    padding: 0px;
    margin: 0px;
    background-image: linear-gradient(#ffffff, #dadee8);
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

section {
    overflow: hidden;
}

.main {
    height: 100vh;
    width: 100%;
    position: relative;
    /* z-index: -2; */
}

nav {
    position: relative;
    display: flex;
    justify-content: center;
    top: 30px;
    transition: 2s;
}

nav a {
    padding: 0 15px;
    margin: 0 30px;
    color: #2E3059;
    text-decoration: none;
    font-size: 20px;
    transition: 300ms;
}

nav .material-symbols-outlined {
    font-size: 30px;
    display: none;
}

img {
    position: absolute;
    height: 50%;
    right: -120px;
    top: -120px;
    /* transform: rotate(-140deg); */
    rotate: -140deg;
    animation: image 1s ease-in-out;
    transition: 2s;
}

.text {
    font-size: clamp(14px, 1.2cqi, 22px);
    display: flex;
    padding: 100px 50px 60px 50px;
    text-align: justify;
    /* align-items: center; */
    flex-direction: column;
    justify-content: space-around;
    width: 70%;
    margin: auto;
    color: #505050;
    animation: textFade 1s ease-in-out;
    transition: 2s;
}

.text h1 {
    color: #00998F;
}
.text p {
    transition: 1s;
}
.text p span{
    transition: 0.4s;
    display: inline-block;
    cursor: default;
    padding: 0 4px;
}

/* All responsiveness */

@media (max-width: 1400px) {
    img {
        height: 40%;
    }
}

@media (max-width: 900px) {
    img {
        height: 35%;
    }
}

@media (max-width: 750px) {
    nav {
        top: inherit;
        position: absolute;
        bottom: 0px;
        right: 0;
        left: 0;
        margin-inline: auto;
        /* width: fit-content; */
        width: 100%;
        padding: 10px;
        background-color: #ced4e6;
    }

    nav .nav-link {
        display: none;
    }

    nav .material-symbols-outlined {
        font-size: 30px;
        display: inline;
    }

    input {
        width: auto;
    }

    .text {
        margin-bottom: 500px;
        padding: 100px 50px 0 50px;
        width: auto;
        height: 80vh;
        overflow: scroll;
    }

    .text::-webkit-scrollbar {
        width: 0px;
    }

    img {

        height: 38%;
    }
}

@media (max-width: 550px) {
    img {
        height: 32%;
    }
}


/* All hover effects */

nav a:hover{
    transform: scale(1.2);
    font-weight: 600;
}
nav a:active{
    color: #2e305980;
    font-weight: 400;
    transition: 150ms;
    transform: scale(1.2);
}
nav .material-symbols-outlined:active{
    color: #2e305980;
    transition: 150ms;
}


.text p span:hover {
    color: #00998F; /* or any color you like */
    transform: scale(1.02);
    font-weight: 500;
    background-color: #E1FEBB;
    /* padding: 0 2px; */
}

/* All Animations */

@keyframes textFade {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes image {
    from {
        transform: scale(0.8);
        right: -200px;
        top: -200px;
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
        transform: rotate(inherit);
    }
}